<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>创建车辆信息</title>
    <link rel="stylesheet" href="<%=basePath%>ext3.4/resources/css/ext-all.css" type="text/css"></link>
<script type="text/javascript" src="<%=basePath%>ext3.4/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="<%=basePath%>ext3.4/ext-all.js"></script>
<script type="text/javascript" src="<%=basePath%>ext3.4/src/locale/ext-lang-zh_CN.js"></script>
<style type="text/css">
	h4{ background:#00afb9; color:#fff; padding-left:15px; line-height:30px; width:490px;}
   	.d_t td,.d_t th{font-size:14px; text-align:right; color:#555; padding-bottom:8px;}
	.d_t input{ height:26px;}
	.t_r{padding-left:15px;}
	.btn_1{ width:112px; height:32px; background:url(btn_1.gif) no-repeat 0 0; border:none; font-weight:bold; color:#fff; font-size:14px; margin-top:15px;}
	.btn_1:hover{ background:url(btn_1.gif) no-repeat 0 -33px;}	
	p{text-align:center;}
</style>
<script type="text/javascript">
function addRow(){
	var table = document.getElementById("table_id");
	var oTr = table.insertRow(); 
	var oTd = oTr.insertCell();   
    oTd.innerHTML = "汽车照片:"; 
	var oTd2 = oTr.insertCell();
	oTd2.innerHTML = "<input type='file' name='image'/>"; 
}
</script>
  </head>
  <body>
  <h4>上传车辆照片</h4>
   <form action="<%=basePath%>carInfo/addCarImage.action" method="post" enctype="multipart/form-data">
   <input type="hidden" name="uid" value="<%=request.getAttribute("uid") %>"/>
    <table class="d_t" id="table_id">
   	<tr> <th>汽车照片:</th><td><input type="file" name="image"/></td></tr>
   	</table>
   	<table class="d_t">
   	<tr> <th style="text-align:left;"><a href="javascript:void(0);" onclick="addRow()">添加表单</a></th><td></td></tr>
    <tr><td colspan="4" style="text-align:center;width:260px;"><input type="submit" value="提交" class="btn_1"/></td></tr>
   </table>
   </form>
  </body>
</html>
